<?php
namespace app\common\validate;
use think\Validate;
class ShopCategory extends Validate
{
    protected $rule    = [
    	'title' => 'require|unique:shop_category,title',
    	'shop_menu_id' => 'require',
    ];
    protected $message = [
        'title.require' => '请输入分类名称',
        'title.unique' => '该分类名称已存在',
    ];
}
